package com.hzit.cart.service;

import com.hzit.cart.api.model.ItemVo;

import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Map;

public interface CartService {
	void addCart(String id, Integer num) throws InvocationTargetException, IllegalAccessException;

	Map<String, List<ItemVo>> getCartList();

	Map<String, List<ItemVo>> removeCart(String id, String sellerId) throws InvocationTargetException, IllegalAccessException;

	ItemVo getItemById(String skuId,Integer buyNum) throws InvocationTargetException, IllegalAccessException;

	String createTokenToRedis();
}
